<template>
  <div>
    <el-col :span="6" style="float: right">
      <el-button type="primary" @click="queryClickfn">{{ $t('button.search') }}</el-button>
      <el-button @click="resetQueryfn">{{ $t('button.reset') }}</el-button>
      <el-button type="text" @click="isopenclickfn">{{
        !isopen ? `${$t('button.unfold')}` : `${$t('button.retract')}`
      }}</el-button>
    </el-col>
  </div>
</template>

<script>
export default {
  props: {
    isopen: {
      type: Boolean,
      required: true
    }
  },
  methods: {
    queryClickfn() {
      this.$emit('queryClickfn')
    },
    resetQueryfn() {
      this.$emit('resetQueryfn')
    },
    isopenclickfn() {
      this.$emit('isopenclickfn')
    }
  }
}
</script>

<style>

</style>
